package com.web.qualification.mapper;


import com.web.qualification.entity.CustomerQualification;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerQualificationMapper {

    List<CustomerQualification> getQualificationList(CustomerQualification qualification);


    CustomerQualification getQualificationByCusNo(@Param("customerNo") Integer customerNo);

    Integer insertQualification(List<CustomerQualification> qualifications);

    CustomerQualification getQualificationByPendingNumber(@Param("pendingNum") Integer pendingNum);

    Integer physicsDeleteQualification(@Param("pendingNum") Integer pendingNum);

    Integer updateApprove(@Param("pendingNum") Integer pendingNum);

    Integer updatePending(CustomerQualification qualification);

    Integer updateReject(@Param("pendingNum") Integer pendingNum);

    Integer addTemporaryQualification(CustomerQualification qualificationNew);

    Integer physicsDeleteTemporaryQualification(@Param("pendingNum") Integer pendingNum);

    CustomerQualification getTemporaryQualification(@Param("pendingNum") Integer pendingNum);

    Integer updateSourceQualification(CustomerQualification qualificationOld);
}
